<template>
 <div class="tabbar">
        <van-tabbar route>
          <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
          <van-tabbar-item replace to="/list" icon="filter-o">分类</van-tabbar-item>
          <van-tabbar-item replace to="/cart"  icon="shopping-cart-o">购物车</van-tabbar-item>
          <van-tabbar-item replace to="/my" icon="user-o">我的</van-tabbar-item>
        </van-tabbar>
  </div>
</template>

<script>
import { mapState} from 'vuex';
export default { 
   computed:{
            ...mapState(['id'])
        },
  data() {
    return {
      active:0
    }
  },
 methods: {
            tt(){
          console.log(this.id);
        },
}
}
</script>

<style scoped>

</style>